<!--
 * @Author: dengyongliang
 * @Date: 2021-04-14 16:12:55
 * @LastEditTime: 2021-08-18 14:39:06
 * @LastEditors: dengyongliang
 * @Description:
-->
<template>
  <div ref="si-container" :class="'si-container type' + type">
    <div class="container-tit">
      <div class="tit-left">
        <slot name="left" />
      </div>
      <div class="tit-right">
        <slot name="right" />
      </div>
    </div>
    <div class="container-cont">
      <slot name="cont" />
    </div>
  </div>
</template>
<script>
export default {
  name: 'SiContainer',
  props: {
    type: {
      type: String,
      default: '1'
    }
  },
  computed: {},
  mounted() {},
  methods: {}
}
</script>
<style lang="scss" scoped>
.si-container {
  background: #fff;
}
.si-container .tit-left {
  float: left;
  color: #333;
}
.si-container .tit-right {
  float: right;
  font-size: 12px;
  color: #333;
}
.si-container .container-tit {
  height: 50px;
  line-height: 50px;
  font-size: 14px;
  border-bottom: 1px solid #ededed;
  padding: 0;
  margin: 0 20px;
  font-weight: normal;
  position: relative;
}
.si-container .container-cont {
  padding: 20px;
  font-size: 12px;
  line-height: 16px;
}
.si-container.type1 .container-tit,
.si-container.type3 .container-tit {
  padding: 0 20px;
  margin: 0px;
}
.si-container.type1 .tit-left::after {
  content: '';
  width: 2px;
  height: 20px;
  background: #0180cd;
  position: absolute;
  left: 0px;
  top: 50%;
  margin-top: -10px;
}
.si-container.type2 .tit-left {
  position: relative;
}
.si-container.type2 .tit-left::after {
  content: '';
  width: 100%;
  height: 2px;
  background: #0180cd;
  position: absolute;
  left: 0px;
  bottom: 0;
}
</style>
